﻿<div class="knowledgebase_select_move_body" ng-app="FileSelect" ng-show="ApiData.knshow">
    <div class="knowledgebase_select_move_bj">
    </div>
    <div class="knowledgebase_select_move" style="overflow: initial;">
        <div class="knowledgebase_select_move_head" ng-if="ApiData.optype==1">
            <i class="iconfont">&#xe653;</i>复制到<div class="close" ng-click="close()">
                <span>+</span></div>
        </div>
        <div class="knowledgebase_select_move_head" ng-if="ApiData.optype==2">
            <i class="iconfont">&#xe653;</i>移动到<div class="close" ng-click="close()">
                <span>+</span></div>
        </div>
        <div class="knowledgebase_select_move_sousuo">
            <div class="input-group">
                <!-- /btn-group -->
                <input type="text" id="key-text" ng-keyup="searchkeyup($event)" class="form-control ng-pristine ng-untouched ng-valid"
                    ng-model="params.searchText" placeholder="请输入搜索文件夹名称" >
                <span class="input-group-addon" ng-click="searchBtn()"><i class="iconfont">&#xe621;</i></span>
            </div>
            <div class="knowledgebase_select_move_qbbq" ng-click="alltag()">
                <!--标签属性选择-->
                <drop-down-tag tag-obj="extend"></drop-down-tag>
            </div>
            <!--
            <div class="knowledgebase_select_move_mcpx" >
                <svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-paixu3"></use></svg>
                名称排序
                <ul class="knowledgebase_select_move_mcpx_dropdown dropdown-menu" style="display: none">
                    
                    <li>按上传时间排序</li>
                    <li>按操作时间排序</li>
                    <li>按名称排序</li>
                </ul>
            </div>
            -->
            <div class="knowledgebase_select_move_mcpx">
                <ul>
                    <!--排序列表和图标只显示一个-->
                    <li ng-click="updoptype(1,1)">
                        <drop-down jisu-model="ddmovefile"></drop-down>
                    </li>
                </ul>
            </div>
            <div class="knowledgebase_select_move_newwjj" ng-click="createfolder()">
                <svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-xinjianwenjian"></use></svg>
                新建文件夹</div>
        </div>
        <div class="knowledgebase_select_move_titlehistory">
            <div class="knowledgebase_select_move_titlehistory_back">
                <!--<a href="javascript:" ng-click="backlevel()">返回上一级</a> |--> <a href="javascript:" ng-click="selectAllkn()">
                    文件主目录</a> 
                    <span ng-repeat="ckbinfo in crumbsknlist" ng-if="crumbsknlist.length <= 3">
                        <span class="knowledge_title_backjiange">></span> <span ng-click="dbselkb(ckbinfo)">
                            {{ckbinfo.fileName}} </span></span>
                            <span ng-if="crumbsknlist.length > 3"><span>...</span>
                                <span class="knowledge_title_backjiange">></span> <span ng-click="dbselkb(crumbsknlist[crumbsknlist.length-2])">
                                    {{crumbsknlist[crumbsknlist.length-2].fileName}} </span><span class="knowledge_title_backjiange">
                                        ></span> <span ng-click="dbselkb(crumbsknlist[crumbsknlist.length-1])">{{crumbsknlist[crumbsknlist.length-1].fileName}}
                                        </span>
                        </span>
            </div>
        </div>
        <div class="knowledgebase_select_move_main">
            <ul class="knowledgebase_select_move_mainul">
                <!--添加selected为选中样式-->
                <li class="knowledgebase_select_move_thumbnail" ng-if="false" >
                    <div class="knowledgebase_select_move_thumbnailimg">
                        <img src="/images/fileicon/folder_56.png"></div>
                    <div class="knowledgebase_select_move_thumbnailtext">
                        文件主目录</div>
                    <div class="knowledgebase_select_checkbox">
                        <div class="liebiaocheck-box " ng-click="selcheck(kbinfo)">
                            <!--添加selected为选中样式-->
                            <span class="iconfont">&#xe67a;</span>
                        </div>
                    </div>
                </li>
                <li class="knowledgebase_select_move_thumbnail knowledgebase_select_move_thumbnail_zanwuwenjian" ng-if="kblist.length==0" >
                <div>
                <img src="/images/train/filenull.png" />                
                <center>此目录下没有文件夹</center>
                </div>
                </li>
                
                <loading isloading="ApiData2.loading"></loading>
                <div ng-if="kblist.length>0" >
                <li  class="knowledgebase_select_move_thumbnail"   ng-repeat="kbinfo in kblist" ng-click="dbselkb(kbinfo)" ng-class="{'selected':kbinfo.sel,'knowledge_disabled':repeatlist(kbinfo)}">
                    <div class="knowledgebase_select_move_thumbnailimg">
                        <img src="/images/fileicon/folder_56.png"></div>
                    <div class="knowledgebase_select_move_liebiaoname"><div class="knowledgebase_select_move_liebiaonamebody">

                        <div class="knowledgebase_select_move_liebiaonamemain">
                                <div class="knowledgebiaoqianyuan">
                                    <svg class="icon" aria-hidden="true" ng-repeat="taginfo in getFileTagList(kbinfo.tagids)"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{{taginfo.tagcolor}}"></use></svg>
                                </div>
                                <div ng-class="getFileTagClass(kbinfo.tagids)"> {{kbinfo.fileName}}</div>
                            </div>
                        </div> 
                    </div>
                    
                    <!--
                    <div class="knowledgebase_select_checkbox">
                        <div class="liebiaocheck-box " ng-click="selcheck(kbinfo)">
                            添加selected为选中样式
                            <span class="iconfont">&#xe67a;</span>
                        </div>
                    </div>
                    -->

                </li>
                </div>
            </ul>
        </div>
        <div class="knowledgebase_select_move_footer">
            <form class="knowledgebase_select_move_footerform ">


            <!--<button class="btn knowledgebase_select_move_btn_fzdzml" ng-click="saymain()" ng-if="!ApiData.isbtnload"  ng-show="ApiData.knshow && ApiData.optype==1">
                复制到主目录</button>
            <button class="btn knowledgebase_select_move_btn_fzdzml" ng-click="saymain()" ng-if="!ApiData.isbtnload"  ng-show="ApiData.knshow && ApiData.optype==2">
                移动到主目录</button>
                -->

            <div class="knowledgebase_select_move_btn_loading" ng-if="ApiData.isbtnload" >
                <btnloading isbtnload="ApiData.isbtnload"></btnloading>
            </div>

            <button class="btn knowledgebase_select_move_btn" ng-click="say()" ng-disabled="ApiData.isbtnload"   ng-show="ApiData.knshow && ApiData.optype==1">
                复制到此目录</button>
            <button class="btn knowledgebase_select_move_btn" ng-click="say()" ng-disabled="ApiData.isbtnload"  ng-show="ApiData.knshow && ApiData.optype==2">
                移动到此目录</button>

            

            <button class="btn knowledgebase_select_move_quxiao_btn" ng-click="close()">
                取消</button>
            </form>
        </div>
        <!--重命名弹框样式-->
        <div class="knowledgebase_select_move_body" ng-show="showupname">
            <div class="knowledgebase_select_move_bj">
            </div>
            <div class="knowledgexjwjcmm">
                <div class="knowledgexjwjcmmbody">
                    <div class="knowledgexjwjcmmtitle">
                        {{upsharedtitle}}<div class="knowledgexjwjcmmtitleright" ng-click="saveupname()">
                            <svg class="icon" aria-hidden="true">
  <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-baocun"></use></svg>
                            保存</div>
                        <div class="close" ng-click="closeupname()">
                            <span>+</span></div>
                    </div>
                    <ul class="knowledgexjwjcmmmain">
                        <li>
                            <input type="" name="" placeholder="请输入文件夹名称" class="form-control" ng-model="kbinfo.fileName"
                                ng-keyup="upnamekeyup($event)"></li>
                        <li>点击保存或回车(Enter)快捷新建文件夹，点击叉号取消新建。文件名称不能为空。</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
